package com.itqf.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description:
 * @Company: 千锋互联
 * @Author: 李丽婷
 * @Date: 2021/1/8
 * @Time: 下午2:24
 */
@RestController
@RefreshScope
public class MyConytroller {

    @Value("${config.name}")
    private   String  configName;

    @RequestMapping("/configName")
    public String  name(){
        System.out.println(configName);
        return  configName;
    }
}
